<div id="<?= $this->getAsyncId() ?>">
    <form action="." method="post" accept-charset="UTF-8">
        <?= $this->asyncFormEvent( 'login' ) ?>
        <div>
            <label for="username">usuario</label><?=
            (in_array( 'username', $this->errors ) ? '*' : '')
            ?><input type="text" name="username" id="username" value="<?= $this->username ?>" />
        </div>
        <div>
            <label for="password">password</label><?=
            (in_array( 'password', $this->errors ) ? '*' : '')
            ?><input type="password" name="password" id="password" value="" />
        </div>
        <div>
            <input type="submit" value="entrar" />
        </div>
    </form>

</div>
